home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 27 / CU Amiga Magazine's Super CD-ROM 27 (1998)(EMAP Images)(GB)[!][issue 1998-10].iso / CUCD / Programming / FreshBar / Source / global.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-27  |  1.2 KB  |  67 lines

  1. //*************************************************************************//
  2. // Filename:    global.h
  3. // Autor:       Christian Taulien of Strange Intelligence
  4. // Purpose:     base include file.
  5. // Creation:    18. März 1998
  6. //*************************************************************************//
  7. #ifndef TAULIEN_GLOBAL_H
  8. #define TAULIEN_GLOBAL_H
  9.  
  10. #include <iostream.h>
  11.  
  12. #ifndef VERSION_S
  13. #define VERSION_S "1.0"
  14. #endif
  15.  
  16. #ifndef VERSION
  17. #define VERSION  1
  18. #endif
  19.  
  20. #ifndef REVISION
  21. #define REVISION 0
  22. #endif
  23.  
  24. #ifdef __MAXON__
  25. #define __HIMPEL__
  26. #define SAVEDS
  27. #endif
  28.  
  29. #ifdef __STORM__
  30. #undef __HIMPEL__
  31. #define __HIMPEL__
  32. #define SAVEDS __saveds
  33. #endif
  34.  
  35. #ifdef __HIMPEL__
  36. #define ASM
  37. #define LibCall
  38. #endif
  39.  
  40. #define REG(x) register __##x
  41.  
  42. /*
  43. #ifdef si_debug
  44. extern "C" KPutStr(char*);
  45. extern "C" KPrintF(char*, void*);
  46. void* params[10];
  47. #define TRACE(txt)\
  48.    KPutStr(__FUNC__ "  [");\
  49.    KPutStr(txt);\
  50.    KPutStr("]\n");
  51. #else
  52. #define TRACE(txt)
  53. #endif
  54. */
  55. #ifdef si_debug
  56. #define TRACE(txt) cout << "["__FUNC__"]: " << txt << endl;
  57. #else
  58. #define TRACE(txt)
  59. #endif
  60.  
  61. #define SIFC_MAX(a,b) ((a)>(b) ? (a) : (b))
  62. #define SIFC_MIN(a,b) ((a)<(b) ? (a) : (b))
  63. #define SIFC_BETWEEN(v,a,b) ((v)>=SIFC_MIN((a),(b)) && (v)<=SIFC_MAX((a),(b)))
  64.  
  65. #endif // TAULIEN_GLOBAL_H
  66.  
  67.